import random
a_1=1008        
a=random.randint(1,a_1)
b=random.randint(1,a_1)
c=random.randint(1,a_1)
d=random.randint(1,a_1)
while a==b or a==c or a==d:
    a=random.randint(1,a_1)
while b==c or b==d or b==a:
    b=random.randint(1,a_1)
while c==d or c==a or c==b:
    c=random.randint(1,a_1)
z=a_1*2
n=0
while z>0:
    e=int(input("?"))
    f=int(input("?"))
    g=int(input("?"))
    h=int(input("?"))
    if e==b or e==c or e==d:
        n=n+1
    if f==a or f==c or f==d:
        n=n+1
    if g==b or g==a or g==d:
        n=n+1
    if h==b or h==c or h==a:
        n=n+1
    print(f"有{n}个数是对的")
    n=n-n
    if e==a:
        print(f"1.{e}")
    if f==b:
        print(f"2.{f}")
    if g==c:
        print(f"3.{g}")
    if h==d:
        print(f"4.{h}")
    if e==a and f==b and g==c and h==d:
        print("你赢了")
        z=z-z
    z=z-1

print(a,b,c,d,e,f,g,h)    